package com.lagou.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "lagou-service-code")
@RequestMapping("/api")
public interface CodeServiceFeignClient {

    @RequestMapping("/code/create/{email}")
    boolean generateCode(@PathVariable String email);

    @RequestMapping("/code/validate/{email}/{code}")
    Integer validateCode(@PathVariable String email, @PathVariable String code);

}
